package com.rc.evcharger.service.ticket;

import com.rc.evcharger.common.base.BaseService;
import com.rc.evcharger.mapper.ticket.MemberTicketMapper;
import com.rc.evcharger.model.order.OrderInfo;
import com.rc.evcharger.model.ticket.MemberTicket;
import com.rc.evcharger.model.ticket.MemberTicketExample;
import com.rc.evcharger.vo.cost.UserLevelPriceResult;

import java.math.BigDecimal;

/**
 * Create by Yang on 2021/5/22
 */
public interface MemberTicketService extends BaseService<Long, MemberTicket, MemberTicketExample, MemberTicketMapper> {

    MemberTicket selectByOrderInfoAndTicketType(String ticketSuitType, String discountType, String tenantCode,
                                                Long elecStationId,
                                                Long memberId,
                                                BigDecimal money);

    UserLevelPriceResult selectBestByOrderInfo(OrderInfo orderInfo);

    UserLevelPriceResult updateTicketByOrderInfo(OrderInfo orderInfo);
}
